<template>
  <router-view></router-view>
  <van-button type="primary" @click="todetail" >商品详情</van-button>
</template>

<script setup lang="ts">
import router from "@/router";
const todetail = () => {
  router.push("/detail");
};
</script>

<style scoped></style>
